package dev.pda.display.presentation.splash

import androidx.lifecycle.ViewModel
import dev.pda.display.domain.message.MessageRepository
import dev.pda.display.presentation.common.base.BaseViewModelFactory
import javax.inject.Inject

class SplashViewModelFactory : BaseViewModelFactory() {

    @Inject
    lateinit var messageRepository: MessageRepository


    init {
        component.inject(this)
    }

    override fun <T : ViewModel?> create(modelClass: Class<T>): T {
        return modelClass.cast(
            SplashViewModel(
                messageRepository
            )
        ) as T
    }
}